package com.qingsong.dto;

import com.qingsong.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/** @author qingsong */
@Schema(name = "订单明细添加DTO")
@Data
public class OrderDetailInsertDTO implements Serializable, RE {

    @NotNull(message = "订单主键不能为空")
    @Schema(description = "订单主键")
    private Long fkOrderId;

    @NotNull(message = "课程主键不能为空")
    @Schema(description = "课程主键")
    private Long fkCourseId;
}